/**
 * jims
 */
package com.jims.master.modules.doctor.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.doctor.entity.OutpTreatRec;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 处置治疗DAO接口
 * @author 陈晓阳
 * @version 2017-03-14
 */
@MyBatisDao
public interface OutpTreatRecDao extends CrudDao<OutpTreatRec> {
    /**
     * 根据门诊医嘱Id 删除处置治疗
     * @param ordersId
     * @return
     * @author 陈晓阳
     */
    public int deleteByOrdersId(@Param("ordersId") String ordersId);

    /**
     * 医技确认修改状态
     * @param outpTreatRec
     * @return
     */
    public int ConfirmDo(OutpTreatRec outpTreatRec);

    /**
     * 医技取消确认
     * @param outpTreatRec
     * @return int
     * @author 赵宁
     */
    public int cancelConfirmDo(OutpTreatRec outpTreatRec);

    /**
     * 退费
     * @param outpTreatRec
     * @return
     */
    public int refundIng(OutpTreatRec outpTreatRec);

    /**
     * 待发消耗品患者列表
     * @param outpTreatRec
     * @return
     */
    public List<OutpTreatRec> findByExp(OutpTreatRec outpTreatRec);

    /**
     * 已发消耗品患者列表
     * @param outpTreatRec
     * @return
     */
    public List<OutpTreatRec> findByOutExp(OutpTreatRec outpTreatRec);

    public BaseDto findAsDto(@Param("id") String id);
}